import request from '@/utils/request'

// 总数
export function getTotalData (query) {
  return request({
    url: '/statistics/totalData',
    method: 'get',
    params: query
  })
}

// 根据项目类型分类统计项目数量
export function groupProjectByKind (query) {
  return request({
    url: '/statistics/groupProjectByKind',
    method: 'get',
    params: query
  })
}

// 根据月份统计预约单和运输单
export function groupBookingAndTransportByMonth (query) {
  return request({
    url: '/statistics/groupBookingAndTransportByMonth',
    method: 'get',
    params: query
  })
}

// 根据月份统计预约单和运输单
export function groupApproachByMonth (query) {
  return request({
    url: '/statistics/groupApproachByMonth',
    method: 'get',
    params: query
  })
}

// 根据处置厂统计处置厂称重数量
export function groupApproachByDisposal (query) {
  return request({
    url: '/statistics/groupApproachByDisposal',
    method: 'get',
    params: query
  })
}